﻿using System;
using System.Collections.Generic;

namespace DataCoreTechnologies.SqlServer
{
   /// <summary>
   /// Contains information about a pair of column that are part of a foreign key.
   /// </summary>
   public sealed class ForeignKeyColumns
   {
      #region Public
      //Properties
      /// <summary>
      /// The column that contains the data that is being pointed to.
      /// </summary>
      public Column ParentColumn { get; private set; }
      /// <summary>
      /// The column that contains the data that is pointing towards the parent column.
      /// </summary>
      public Column ReferenceColumn { get; private set; }
      #endregion Public
      #region Internal
      //Constructor
      /// <summary>
      /// Creates a foreign key column class that represents a pair of columns that are part of a foreign key.
      /// </summary>
      /// <param name="parentColumn">The column that contains the data that is being pointed to.</param>
      /// <param name="referenceColumn">
      /// The column that contains the data that is pointing towards the parent column.
      /// </param>
      internal ForeignKeyColumns(Column parentColumn, Column referenceColumn)
      {
         ParentColumn = parentColumn;
         ReferenceColumn = referenceColumn;
      }
      #endregion Internal
   }
}
